You'll need to download this notebook to your computer, install these Python packages

jupyter matplotlib numpy pandas scipy seaborn sympy

then run this:

jupyter nbextension enable --py widgetsnbextensio

In [1]:
from ipywidgets import widgets, interact
%matplotlib inline
import matplotlib.pyplot as plt
from numpy import arange, sin

In [2]:
t = arange(0,10,0.01)

def pltsin(freq):
    plt.plot(t, sin(freq*t))
    plt.show()

interact(pltsin, freq=(1,10,0.1))


Out[2]:
<function __main__.pltsin>

In [ ]:


In [ ]: